package com.otod.pm.prj.mapper;

import java.util.List;
import java.util.Map;

import com.otod.base.mapper.BaseMapper;
import com.otod.base.support.spring.mybatis.annotation.MyBatisRepository;
import com.otod.pm.prj.bo.TaskCalendarBo;
import com.otod.pm.prj.bo.TaskFileBo;
import com.otod.pm.prj.vo.TaskVo;

@MyBatisRepository
public interface  TaskMapper extends BaseMapper<TaskVo>{
	/**
	 * 删除 by 项目id
	 */
	public void deleteByPrjId(String prjId);
	/**
	 * 删除 by 阶段id
	 */
	public void deleteByStepId(String stepId);
	
	/**
	 * 查询某个时间段的任务
	 * @param map
	 * @return
	 */
	public List<TaskCalendarBo> queryStartEndTime(Map<String, Object> map);
	/**
	 * 通过stepId查询数据
	 * @return
	 */
	public List<TaskFileBo> selectStepId(String stepId);
	
	//逻辑删除 项目对应的任务
	public void remove(Map<String, Object> map);
}